<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSendPhoneUserTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('send_phone_user', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->comment('点击充值用户id')->unique();
            $table->tinyInteger('rank')->default(1)->comment('充值等级 1:648 2:1998 3:4999 ');
            $table->tinyInteger('type')->default(1)->comment('第几次活动');
            $table->tinyInteger('status')->default(0)->comment('0为未充值 ，1为已充值');
            $table->tinyInteger('is_draw')->default(0)->comment('0为未领取 ');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('send_phone_user');
    }
}
